package com.xkdx.caipiao.presistence.tixian;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;
import com.xkdx.caipiao.module.network.AbsAction.Parameter;

public class TixianAction extends AbsAction {

	String uid, logintoken, money, id,signcode;

	public TixianAction(String uid, String logintoken, String money, String id,String signcode) {
		this.uid = uid;
		this.logintoken = logintoken;
		this.money = money;
		this.id = id;
		this.signcode = signcode;

	}

	@Override
	public void constructRequest() {

		HashMap<String, String> mapdefault = new HashMap<String, String>();
		mapdefault.put("id", id);
		mapdefault.put("logintoken", logintoken);
		mapdefault.put("uid", uid);
		mapdefault.put("signcode", signcode);

		String jsondefault = constructJson(mapdefault);
		Parameter parameterdefault = new Parameter("Bank", "SetDefault",
				jsondefault);

		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", logintoken);
		map.put("money", money);
		map.put("id", id);

		String json = constructJson(map);
		Parameter parameter = new Parameter("Cash", "CashRequest", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameterdefault);
		list.add(parameter);
		requestData = constructMod(list);

	}

}
